package edu.sctu.zcy.month201505.day20150511;

/**
 * Created by user24 on 2015/5/11.
 */
public abstract class Parent {

    public String name;
    public int age;
    public int height;

    public Parent(String name,int age,int height){
        this.name=name;
        this.age=age;
        this.height=height;
    }

  public void print(){

      System.out.println("姓名："+name+"\n"+"年龄："+age+"\n"+"身高："+height);
      getString();
    }

    public abstract void getString();

}
